package com.macro.mall.service;


import com.macro.mall.dto.BmsTourismProjectActivitiesDetail;
import com.macro.mall.dto.BmsTourismProjectActivitiesParam;
import com.macro.mall.model.BmsTourismProjectActivities;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface BmsTourismProjectActivitiesService {

    /**
     * 分页获取文旅项目-活动
     */
    List<BmsTourismProjectActivities> getList(BmsTourismProjectActivitiesParam bmsTourismProjectActivitiesParam);

    /**
     * 根据项目id获取文旅项目-活动
     */
    List<BmsTourismProjectActivities> getListByTourismProjectId(Long id);

    /**
     * 添加文旅项目-活动
     */
    @Transactional
    int create(BmsTourismProjectActivitiesParam bmsTourismProjectActivitiesParam);

    /**
     * 修改文旅项目-活动
     */
    int update(BmsTourismProjectActivitiesParam bmsTourismProjectActivitiesParam);

    /**
     * 获取单个文旅项目-活动详情
     */
    BmsTourismProjectActivitiesDetail getItem(Long id);

    /**
     * 批量删除文旅项目-活动
     */
    @Transactional
    int delete(List<Long> ids);

}
